home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48hor1
/
logb.doc
< prev
next >
Wrap
Text File
|
1995-03-31
|
1KB
|
31 lines
(Comp.sys.handhelds)
Item: 3318; Resp: 6 by grue at cs.uq.oz.au
Author: [Paul Dale, aka Frobozz]
Date: Wed Jun 05 1991
My little bit is a routine that calculates log to any base using
the full 15 digit internal precision. The routine checks its arguments and
it only works when given 2 real numbers (unlike the built in log functions
which also accept complex numbers and symbolics).
To use this program enter the base into level 2 of the stack and the
number you want the log of on level 1 and run the program.
e.g. Log 3 base 2, would be calculated as:
2 ENTER 3 LOGB
[Note: Before you shout that this can be calculated by merely pressing
3 LN 2 LN /, be aware that keyboard chain calculations like this can
accumulate roundoff errors. LOGB is more accurate. See LOGB.LST for
method and listing. -jkh-]
Pauli
seeya
Paul Dale | Internet/CSnet: grue@cs.uq.oz.au
Dept of Computer Science| Bitnet: grue%cs.uq.oz.au@uunet.uu.net
Uni of Qld | JANET: grue%cs.uq.oz.au@uk.ac.ukc
Australia, 4072 | EAN: grue@cs.uq.oz
| UUCP: uunet!munnari!cs.uq.oz!grue
f4e6g4Qh4++ | JUNET: grue@cs.uq.oz.au